package i18n;

import java.util.Locale;
import java.util.ResourceBundle;

public class Text {

	public static void main(String[] args) {
		// ResourceBundle rb = // ResourceBundle.getBundle("i18n.TextResource");
		ResourceBundle rb = ResourceBundle.getBundle("i18n.TextResource", new Locale("zh", "CN"));
		System.out.println(rb.getString("text1"));

		// baseName + "_" + language1 + "_" + country1 + "_" + variant1
		// baseName + "_" + language1 + "_" + country1
		// baseName + "_" + language1
		//
		// baseName + "_" + language2 + "_" + country2 + "_" + variant2
		// baseName + "_" + language2 + "_" + country2
		// baseName + "_" + language2
		//
		// baseName

		// locale设置 结果资源包
		// Locale("fr", "CH") MyResources_fr_CH.class
		// Locale("fr", "FR") MyResources_fr.properties
		// Locale("de", "DE") MyResources_en.properties
		// Locale("en", "US") MyResources_en.properties
		// Locale("es", "ES") MyResources_es_ES.class
	}
}
